package com.hd.trans.utils;

import android.content.Context;
import android.os.Bundle;

import com.hd.trans.common.interf.Callback;
import com.hd.trans.limit4Use.LimitUseListener;
import com.hd.trans.network.bean.UserInfoBean;
import com.hd.trans.ui.activity.AiChatActivity;
import com.hd.trans.ui.activity.CameraHomeActivity;
import com.hd.trans.ui.activity.PictureTransHistoryActivity;
import com.hd.trans.ui.activity.PictureTransResultActivity;

/**
 * 已添加TranslationUI作为界面开启入口函数集合
 * 该类废弃，后续所有界面开启都通过TranslationUI开启
 */
@Deprecated
public class OpenKotlinAty {

    public static void openCameraHomeActivity(Context context, LimitUseListener listener, Bundle options) {
        CameraHomeActivity.open(context, listener, options);
    }

    public static void openCameraHomeActivity(
            Context context,
            int productId,
            String userId,
            LimitUseListener listener,
            Bundle options) {
        CameraHomeActivity.open(context, listener, productId, userId, options);
    }

    public static void openPictureTransResultActivity(Context context, String filePath,long createTime, LimitUseListener listener, Callback callback) {
        PictureTransResultActivity.open(context,filePath,createTime,listener, callback);
    }

    public static void openPictureTransResultActivity(
            Context context,
            String filePath,
            int productId,
            String userId,
            long createTime,
            LimitUseListener listener,
            Callback callback) {
        PictureTransResultActivity.open(context,filePath,createTime,productId,userId, listener, callback);
    }

    public static void openPictureTransHistoryActivity(Context context, LimitUseListener listener) {
        PictureTransHistoryActivity.open(context,listener);
    }

    public static void openPictureTransHistoryActivity(Context context, LimitUseListener listener, Callback callback) {
        PictureTransHistoryActivity.open(context,listener, callback);
    }

    public static void openAiChatActivity(Context context, LimitUseListener listener, UserInfoBean bean, int type) {
        AiChatActivity.open(context, listener, bean, type);
    }
}
